module(
    name = "app"
)

#新版MODULE.bazel替代原来WORKSPACE管理依赖项
#文档 https://bazel.build/rules/lib/globals/module?hl=zh-cn#bazel_dep
#具体库可以查询：https://registry.bazel.build/all-modules
bazel_dep(name="rules_cc",version="0.0.17")
bazel_dep(name = "grpc", version = "1.72.0-pre1")
bazel_dep(name = "rules_proto", version = "7.0.2")


# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
#使用方法：终端命令 bazel run @hedron_compile_commands//:refresh_all
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
    module_name = "hedron_compile_commands",
    remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
    commit = "0e990032f3c5a866e72615cf67e5ce22186dcb97",
    # Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
    # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
)
